//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.mouslisten;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.tree.DefaultTreeModel;
import org.come.Jpanel.CollectionJadeJpanel;
import org.come.Jpanel.ExchangeValueJpanel;
import org.come.Jpanel.JadeUpJpanel;
import org.come.Jpanel.SynthesisJpanel;
import org.come.until.AccessSuitMsgUntil;

public class ShowAllSuitMouslisten implements MouseListener {
    private ExchangeValueJpanel valueJpanel;
    private CollectionJadeJpanel jadeJpanel;
    private SynthesisJpanel synthesisJpanel;
    private JadeUpJpanel jadeUpJpanel;

    public ShowAllSuitMouslisten(ExchangeValueJpanel valueJpanel, CollectionJadeJpanel jadeJpanel, SynthesisJpanel synthesisJpanel, JadeUpJpanel jadeUpJpanel) {
        this.valueJpanel = valueJpanel;
        this.jadeJpanel = jadeJpanel;
        this.synthesisJpanel = synthesisJpanel;
        this.jadeUpJpanel = jadeUpJpanel;
    }

    @Override
    public void mouseClicked(MouseEvent e) {
        DefaultTreeModel treeModel;
        if (this.valueJpanel != null) {
            ExchangeValueJpanel.showAll = !ExchangeValueJpanel.showAll;
            AccessSuitMsgUntil.showSuitMethod(this.valueJpanel.getTop(), ExchangeValueJpanel.showAll);
            treeModel = (DefaultTreeModel)this.valueJpanel.getjTree().getModel();
            treeModel.reload();
        }

        if (this.jadeJpanel != null) {
            CollectionJadeJpanel.showAll = !CollectionJadeJpanel.showAll;
            AccessSuitMsgUntil.showSuitMethod(this.jadeJpanel.getTop(), CollectionJadeJpanel.showAll);
            treeModel = (DefaultTreeModel)this.jadeJpanel.getjTree().getModel();
            treeModel.reload();
        }

        if (this.synthesisJpanel != null) {
            SynthesisJpanel.showAll = !SynthesisJpanel.showAll;
            AccessSuitMsgUntil.showSuitMethod(SynthesisJpanel.getTop(), SynthesisJpanel.showAll);
            treeModel = (DefaultTreeModel)this.synthesisJpanel.getjTree().getModel();
            treeModel.reload();
        }

        if (this.jadeUpJpanel != null) {
            JadeUpJpanel.showAll = !JadeUpJpanel.showAll;
            AccessSuitMsgUntil.showSuitMethod(JadeUpJpanel.getTop(), JadeUpJpanel.showAll);
            treeModel = (DefaultTreeModel)this.jadeUpJpanel.getjTree().getModel();
            treeModel.reload();
        }

    }

    @Override
    public void mousePressed(MouseEvent e) {
    }

    @Override
    public void mouseReleased(MouseEvent e) {
    }

    @Override
    public void mouseEntered(MouseEvent e) {
    }

    @Override
    public void mouseExited(MouseEvent e) {
    }
}
